package text;

import java.util.List;

public class Object2 {

	private Shangpin shangpin;

	public Shangpin getShangping() {
		return shangpin;
	}

	public void setShangping(Shangpin shangpin) {
		this.shangpin = shangpin;
	}
	public void println(){
		Shangpin sh = shangpin;
		Brand br = sh.getBrand();
		StringBuffer print = new StringBuffer();
		print.append(br.getId());
		print.append(br.getImage_url());
		print.append(sh.getContent());
		print.append(sh.getPrice());
		System.out.println(print);
	}
}
